<template>
    <div class="main">
        <div class="bookClassifyBigBox">
            <div class="BCBBB">
                <div class="BCcontainer">
                    <div class="bookCityTitle">
                        <div class="Toptions">
                            <span :class="{con:bookClassifyType==1}" @click="bookClassifyType=1">女生</span>
                            <span :class="{con:bookClassifyType==2}" @click="bookClassifyType=2">男生</span>
                            <span :class="{con:bookClassifyType==3}" @click="bookClassifyType=3">图书</span>
                        </div>
                        <!-- <div class="search"> -->
                            <router-link to="/search/search" class="search" tag="div">
                                <span class="iconfont icon-sousuo"></span>
                            </router-link>
                        <!-- </div> -->
                    </div>
                </div>
            </div>
            <bookClassifyWomen v-if="bookClassifyType==1"></bookClassifyWomen>
            <bookClassifyMan v-if="bookClassifyType==2"></bookClassifyMan>
            <bookClassifyBooks v-if="bookClassifyType==3"></bookClassifyBooks>
            <bottomNav></bottomNav>
        </div>
    </div>
</template>

<script>
import bottomNav from "../../components/base/bottomNav.vue"
import bookClassifyWomen from '../../components/bookClassify/bookClassifyWomen.vue';
import bookClassifyMan from '../../components/bookClassify/bookClassifyMan.vue';
import bookClassifyBooks from '../../components/bookClassify/bookClassifyBooks.vue';

export default {
    data(){
        return{
            bookClassifyType:1,
        }
    },
    components:{
        bookClassifyWomen,
        bookClassifyMan,
        bookClassifyBooks,
        bottomNav,
    }
}
</script>

<style lang="less">
@import "../../assets/css/base.css";

.bookClassifyBigBox{
    padding-top: 51.6px;
    width: 100%;
    .BCBBB{
        position: fixed;
        width: 100% ;
        height: 50px;
        top: 0px;
        left: 0px;
        z-index: 10;
        .BCcontainer{
            .bookCityTitle{
                width: 100%;
                height: 100%;
                line-height: 50px;
                background-color: #ffe344;
                display: flex;
                justify-content: space-between;
                align-items: center;
                .Toptions{
                    width: 50%;
                    margin-left: 20px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    span{
                        font-size: 19px;
                        font-weight: bold;
                    }
                    span.con{
                        position: relative;
                    }
                    span.con::after{
                        position: absolute;
                        left: 6px;
                        bottom: 5px;
                        content: "";
                        display: block;
                        width: 70%;
                        height: 0px;
                        border-bottom: 5px solid rgba(255, 0, 0, 0.479);
                        border-radius: 20px;
                    }
                }
                .search{
                    margin-right: 20px;
                    span{
                        font-size: 22px;
                        font-weight: bold;
                    }
                }
            }
        }
    }
}
</style>